<template>
  <div>
    <el-tabs v-model="activeName">
      <el-tab-pane label="专业库" name="2"></el-tab-pane>
      <el-tab-pane label="兵种库" name="3"></el-tab-pane>
      <el-tab-pane label="专题库" name="4"></el-tab-pane>
    </el-tabs>
    <Search />
    <List :type="activeName" />
    <Add :type="activeName" />
  </div>
</template>
<script>
export default {
  data() {
    return {
      activeName: "2",
    };
  },
  components: {
    Search: () => import("./Search.vue"),
    List: () => import("./List.vue"),
    Add: () => import("./Add.vue"),
  },
};
</script>